function foo (message) {
  console.log(message.length)
}
foo ('hello world')
foo('李银河')
foo(123) // undefined
foo(null) // error